using HHB.DataAccess.Entities;

namespace HHB.DataAccess.Migrations
{
    using System;
    using System.Data.Entity;
    using System.Data.Entity.Migrations;
    using System.Linq;

    internal sealed class Configuration : DbMigrationsConfiguration<HHB.DataAccess.HhbContext>
    {
        public Configuration()
        {
            AutomaticMigrationsEnabled = false;
        }

        protected override void Seed(HHB.DataAccess.HhbContext context)
        {
            context.Users.AddOrUpdate(u => u.Username, 
                                                new User(){Username = "ABenutzer1", Password = "1234"},
                                                new User(){Username = "BBenutzer2", Password = "1234"},
                                                new User(){Username = "CBenutzer3", Password = "1234"},
                                                new User(){Username = "DBenutzer4", Password = "1234"}
                                                );

            
        }
    }
}
